package com.geese.common.oss;

import java.io.InputStream;
import java.util.Map;

import com.aliyun.oss.model.PolicyConditions;

public interface OssClientManager {

	/**
	 * 获取OSS网页凭证
	 */
	public Map<String, Object> getPolicy(String bucket, PolicyConditions policyConds) ;
	
	public Map<String, Object> getPolicy(String bucket, long expireTime, PolicyConditions policyConds) ;
	
	public Map<String, Object> getPolicy(String bucket, String dir, PolicyConditions policyConds) ;

	public Map<String, Object> getPolicy(String bucket, String dir, long expireTime, PolicyConditions policyConds) ;
	
	public void upload(String bucket, String key, InputStream inputStream);
	
}
